package com.sun.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.reggie.entity.Dish;
import com.sun.reggie.entity.dto.DishDto;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDto dishDto);

    Page<DishDto> pageDishDto(Page<DishDto> dishDtoPage, String name);

    //根据id查询菜品信息和对应的口味信息
     DishDto getByIdWithFlavor(Long id);

    //更新菜品信息，同时更新对应的口味信息
     void updateWithFlavor(DishDto dishDto);

     boolean removeByIdsWithFlavor(List<Long> ids);

    Page<DishDto> pageRecycleDishDto(Page<DishDto> dishDtoPage, String name);

    boolean recycleByIdsWithFlavor(List<Long> ids);
}